import request from '@/utils/request'

const api = {
  rights: '/rights/',
  menus: '/menus'
}

export function rights(type) {
  return request({
    url: api.rights + type,
    method: 'get',
    cache: true
  })
}

export function menus() {
  return request({
    url: api.menus,
    method: 'get',
    cache: true
  })
}

